package java8_26.oop.Test_2;

public class Plane {
private double weight;
private double height;

    public Plane(double weight, double height) {
        this.weight = weight;
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
    public void fly(Pilot p){
        System.out.println("起飞");
    }
    public void quick(Pilot p){
        System.out.println("加速");
    }
    public void land(Pilot p ){
        System.out.println("降落");
    }
}
